package com.example.mangroves.service.impl;

import com.example.mangroves.entity.Phenology;
import com.example.mangroves.mapper.PhenologyMapper;
import com.example.mangroves.service.PhenologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PhenologyServiceImpl implements PhenologyService {

    @Autowired
    private PhenologyMapper phenologyMapper;

    @Override
    public List<Phenology> getAllPhenology() {
        return phenologyMapper.selectList(null); // 查询所有记录
    }
}

